package com.tian.controller;

import com.tian.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
public class UserController {

    @Resource
    private UserService userService;
    @RequestMapping("/getUser")
    public Map<String,String> getUser(){
        return userService.getUser();
    }
}
